package com.job.zhangqiyan;

/**
 * @author zhangqiyan
 * @version 1.0
 * @since 2022-07-05 04:52:47
 */
public class diyicizuoye {
    public static void main(String[] args) {
        //动态初始化数组    不指定数据
        int[] arr = new int[3];
        //静态初始化   指定数据
        //
        String[] names = {"大哥","二哥","三哥"};
        //length属性  数据个数 也叫数组的长度
        System.out.println(names[0]);
        System.out.println(names[names.length-1]);
    }
}